;; -*- Emacs-Lisp -*-

;; Time-stamp: <2010-04-10 18:54:50 Saturday by ahei>

(require 'yasnippet)

(yas/global-mode 1)

(defun yasnippet-settings ()
  "settings for `yasnippet'."
  (setq yas/root-directory (concat my-emacs-path "snippets"))
  (setq yas/trigger-key nil)

  (eal-define-keys
   'yas/keymap
   `(("M-j" yas/next-field-or-maybe-expand)
     ("M-k" yas/prev-field))))

(eval-after-load "yasnippet"
  `(yasnippet-settings))

(yas/load-directory yas/root-directory)

(provide 'yasnippet-settings)
